package com.yoga.entity;

import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.Serializable;
import java.util.Date;

/**
 * yoga_myorder
 * @author 
 */@AllArgsConstructor
public class YogaMyorder implements Serializable {
    private Integer oid;

    private String payuid;

    private String getuid;

    private Integer paymoney;

    private Date createtime;

    private Date paytime;

    private String states;

    private static final long serialVersionUID = 1L;

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public String getPayuid() {
        return payuid;
    }

    public void setPayuid(String payuid) {
        this.payuid = payuid;
    }

    public String getGetuid() {
        return getuid;
    }

    public void setGetuid(String getuid) {
        this.getuid = getuid;
    }

    public Integer getPaymoney() {
        return paymoney;
    }

    public void setPaymoney(Integer paymoney) {
        this.paymoney = paymoney;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getPaytime() {
        return paytime;
    }

    public void setPaytime(Date paytime) {
        this.paytime = paytime;
    }

    public String getStates() {
        return states;
    }

    public void setStates(String states) {
        this.states = states;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        YogaMyorder other = (YogaMyorder) that;
        return (this.getOid() == null ? other.getOid() == null : this.getOid().equals(other.getOid()))
            && (this.getPayuid() == null ? other.getPayuid() == null : this.getPayuid().equals(other.getPayuid()))
            && (this.getGetuid() == null ? other.getGetuid() == null : this.getGetuid().equals(other.getGetuid()))
            && (this.getPaymoney() == null ? other.getPaymoney() == null : this.getPaymoney().equals(other.getPaymoney()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getPaytime() == null ? other.getPaytime() == null : this.getPaytime().equals(other.getPaytime()))
            && (this.getStates() == null ? other.getStates() == null : this.getStates().equals(other.getStates()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOid() == null) ? 0 : getOid().hashCode());
        result = prime * result + ((getPayuid() == null) ? 0 : getPayuid().hashCode());
        result = prime * result + ((getGetuid() == null) ? 0 : getGetuid().hashCode());
        result = prime * result + ((getPaymoney() == null) ? 0 : getPaymoney().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getPaytime() == null) ? 0 : getPaytime().hashCode());
        result = prime * result + ((getStates() == null) ? 0 : getStates().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", oid=").append(oid);
        sb.append(", payuid=").append(payuid);
        sb.append(", getuid=").append(getuid);
        sb.append(", paymoney=").append(paymoney);
        sb.append(", createtime=").append(createtime);
        sb.append(", paytime=").append(paytime);
        sb.append(", states=").append(states);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}